#!/bin/bash

# ---------- ---------- ---------- ---------- ---------- ----------
#TODO:  Enable release build.
#If build==release, then create build.properties file in the root of name
#Then add the following lines:
#key.store=keystore
#key.alias=hundreds.peers.community
#key.store.password=foo
#key.alias.password=bar
# ---------- ---------- ---------- ---------- ---------- ----------

name=$1
build=${2:-"debug"}

if [ -d ${name} ] ; then
    cd ${name}
    ant ${build}
else
    echo "compile: Project not found!"
fi

